python subprocess.run output

37

python subprocess.run output -

import subprocess
output = subprocess.run(["cat", "data.txt"], capture_output=True)
print (output.stdout)

Comments

Submit
0 Comments